package com.handyshop.mall.dubbo.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "订单物流明细表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_delivery_item")
public class DeliveryItem extends BaseEntity {
    /**
     * 发货单号
     */
    @TableField(value = "delivery_id")
    @ApiModelProperty(value = "发货单号")
    private Long deliveryId;

    /**
     * 原始订单明细项目编号
     */
    @TableField(value = "order_item_id")
    @ApiModelProperty(value = "原始订单明细项目编号")
    private Long orderItemId;

    /**
     * 明细商品类型
     */
    @TableField(value = "item_type")
    @ApiModelProperty(value = "明细商品类型")
    private Object itemType;

    /**
     * 货品ID
     */
    @TableField(value = "product_id")
    @ApiModelProperty(value = "货品ID")
    private Long productId;

    /**
     * 商品ID
     */
    @TableField(value = "goods_id")
    @ApiModelProperty(value = "商品ID")
    private Long goodsId;

    /**
     * 明细商品的名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "明细商品的名称")
    private String name;

    /**
     * 商品规格描述
     */
    @TableField(value = "spec_info")
    @ApiModelProperty(value = "商品规格描述")
    private String specInfo;

    /**
     * 图片ID
     */
    @TableField(value = "image_id")
    @ApiModelProperty(value = "图片ID")
    private Long imageId;

    /**
     * 重量
     */
    @TableField(value = "weight")
    @ApiModelProperty(value = "重量")
    private Integer weight;

    /**
     * 发货数量
     */
    @TableField(value = "send_num")
    @ApiModelProperty(value = "发货数量")
    private Integer sendNum;

    public static final String COL_ID = "id";

    public static final String COL_DELIVERY_ID = "delivery_id";

    public static final String COL_ORDER_ITEM_ID = "order_item_id";

    public static final String COL_ITEM_TYPE = "item_type";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_GOODS_ID = "goods_id";

    public static final String COL_NAME = "name";

    public static final String COL_SPEC_INFO = "spec_info";

    public static final String COL_IMAGE_ID = "image_id";

    public static final String COL_WEIGHT = "weight";

    public static final String COL_SEND_NUM = "send_num";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}